﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPages/DefaultWithLeft.Master"
  AutoEventWireup="true" CodeBehind="SearchedResult.aspx.cs" Inherits="NguyenHoa.Web.Pages.SearchedResult" %>

<%@ Register Assembly="DevExpress.Web.v9.1, Version=9.1.4.0, Culture=neutral, PublicKeyToken=5377c8e3b72b4073"
  Namespace="DevExpress.Web.ASPxDataView" TagPrefix="dxdv" %>
<asp:Content ID="Content1" ContentPlaceHolderID="cphContentMain" runat="server">
  <div class="section">
    <div class="wrapper">
      <div style="font-style: italic; font-weight: bold; font-size: 14px; color: Gray; padding: 10px 0 0 20px;">
        <asp:Label ID="lblResultNumber" runat="server"></asp:Label>
      </div>
      <dxdv:ASPxDataView ID="dvNews" runat="server" ClientInstanceName="dvNews" ColumnCount="1"
        Width="100%" EmptyDataText="<%$ Resources:Messages, ERR0058 %>" PagerAlign="Right"
        ItemSpacing="5px" PagerPanelSpacing="0px" BackColor="Transparent" OnDataBound="dvNews_DataBound"
        RowPerPage="5">
        <PagerStyle>
          <Paddings PaddingRight="18px" PaddingTop="20px" />
        </PagerStyle>
        <Border BorderStyle="None"></Border>
        <ItemStyle BackColor="Transparent" Width="100%">
          <Paddings Padding="0px" />
          <Border BorderStyle="None" />
        </ItemStyle>
        <ItemTemplate>
          <div class="news">
            <div class="news_title">
              <a href='NewsDetailPage.aspx?t=N&id=<%#Eval("Id") %>&tid=<%#Eval("CategoryId") %>'>
                <%#Eval("Title") %>
              </a>
            </div>
            <div class="news_quote">
              (<%#FormatDate((Eval("PostDate")))%>
              -
              <%=GetGlobalResourceObject("Strings", "ViewCount") %>
              :
              <%#Eval("ViewCount") %>)
            </div>
            <div class="news_text">
              <img src="" alt="" id="imgPreview" runat="server" style="display: none" />
              <%#Eval("Summary")%>
            </div>
            <a class="link_text" href="NewsDetailPage.aspx?t=N&id=<%#Eval("Id") %>&tid=<%#Eval("CategoryId") %>">
              <asp:Literal ID="Literal1" runat="server" Text="<%$ Resources:Strings, Detail%>"></asp:Literal></a>
          </div>
        </ItemTemplate>
        <Paddings PaddingBottom="2px" PaddingLeft="0px" PaddingTop="2px" PaddingRight="3px">
        </Paddings>
        <PagerSettings Position="Bottom">
          <Summary Position="Right" Text="<%$ Resources:Strings, PagerText%>" />
          <AllButton>
            <Image Height="18px" Width="24px" />
          </AllButton>
          <FirstPageButton>
            <Image Height="18px" Width="22px" />
          </FirstPageButton>
          <LastPageButton>
            <Image Height="18px" Width="22px" />
          </LastPageButton>
          <NextPageButton>
            <Image Height="18px" Width="20px" />
          </NextPageButton>
          <PrevPageButton>
            <Image Height="18px" Width="20px" />
          </PrevPageButton>
        </PagerSettings>
      </dxdv:ASPxDataView>
    </div>
  </div>
</asp:Content>
